package com.lcq.gulimall.product.config;

//import io.seata.rm.datasource.DataSourceProxy;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import javax.sql.DataSource;

//@Configuration
public class MyDataSourceConfig {

//    @Primary
//    @Bean("dataSource")
//    public DataSource setDataSource(DataSourceProperties properties){
//        return new DataSourceProxy(properties.initializeDataSourceBuilder().build());
//    }
}
